<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
    <script>
        /*创建对象的三种方法：
            1.字面量创建{描述对象}
            2.构造函数创建对象：第一步定义构造函数，第二部实例化对象
            3.new Object()
        */
       console.log(Math.PI);
       console.log(Math.max(2,23,42,-231,53.24,-342));
       console.log(Math.ceil(Math.random()));
       //随机数
       let randomNumber = Math.floor(Math.random()*60)+1;
       console.log(randomNumber);
       //随机点名
       let students = ['张三','李四','王五','赵六','孙七'];
       function randomcall(){
        let randomIndex = Math.floor(Math.random()*students.length);
        let calledStudent = students[randomIndex];
       }
       console.log(calledStudent);
    </script>
</html>